package com.base.logistics.jdl.bean.print;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 * 所有物流公司标准模板
 * </pre>
 * @since 2021-02-19
 */
public class StandardTemplate  implements Serializable {

    /**
     * 物流公司编码
     */
    private String cpCode;

    /**
     * 该物流公司下标准模板
     */
    private List<StandardTemplateDTO> standardTemplates;

    public StandardTemplate() {
    }

    public String getCpCode() {
        return this.cpCode;
    }

    public List<StandardTemplateDTO> getStandardTemplates() {
        return this.standardTemplates;
    }

    public void setCpCode(String cpCode) {
        this.cpCode = cpCode;
    }

    public void setStandardTemplates(List<StandardTemplateDTO> standardTemplates) {
        this.standardTemplates = standardTemplates;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof StandardTemplate)) return false;
        final StandardTemplate other = (StandardTemplate) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$cpCode = this.getCpCode();
        final Object other$cpCode = other.getCpCode();
        if (this$cpCode == null ? other$cpCode != null : !this$cpCode.equals(other$cpCode)) return false;
        final Object this$standardTemplates = this.getStandardTemplates();
        final Object other$standardTemplates = other.getStandardTemplates();
        if (this$standardTemplates == null ? other$standardTemplates != null : !this$standardTemplates.equals(other$standardTemplates))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof StandardTemplate;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $cpCode = this.getCpCode();
        result = result * PRIME + ($cpCode == null ? 43 : $cpCode.hashCode());
        final Object $standardTemplates = this.getStandardTemplates();
        result = result * PRIME + ($standardTemplates == null ? 43 : $standardTemplates.hashCode());
        return result;
    }

    public String toString() {
        return "StandardTemplate(cpCode=" + this.getCpCode() + ", standardTemplates=" + this.getStandardTemplates() + ")";
    }
}
